package io.github.wppli.infrastructure.persistent.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.*;

/**
 * <p>
 * 用户点赞记录
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2025-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("likes")
public class Likes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 被赞帖子ID
     */
    @TableField("post_id")
    private Long postId;

    /**
     * 状态,1: 有效,0: 无效
     */
    @TableField("status")
    private Integer status;

    /**
     * 点赞时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;


}
